<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
    <title>浏览器定位</title>
   <!--  <link rel="stylesheet" href="http://cache.amap.com/lbs/static/main1119.css"/> -->
    <!-- <script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=489948cc5e88206aa4d323b690c0f6eb"></script>
    <script type="text/javascript" src="http://cache.amap.com/lbs/static/addToolbar.js"></script> -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="../common/htmlHeader.jsp"%>
<title>Insert title here</title>
</head>
<body>
<button>向页面发送 HTTP GET 请求，然后获得返回的结果</button>
<%@ include file="../common/htmlFooter.jsp"%>
<script>
$(document).ready(function(){
  $("button").click(function (){
    $.get("http://webapi.amap.com/maps/ipLocation?key=489948cc5e88206aa4d323b690c0f6eb",function(data,status){
    	
    },"jsonp");
  });
});
</script>
</body>
</html>